﻿//============================================================
//write by bxl at 2021-06-13 20:50:31
//============================================================


using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BCDto.CRM.BigCustomerTradeAnalysis
{
    /// <summary>
    /// 大客户交易分析 数据模型
    /// </summary> 
    public class BigCustomerTradeAnalysisDto
    {  
        /// <summary>
        /// 大客户交易分析Id
        /// </summary>
        public long BigCustomerTradeAnalysisId { get; set; }

        /// <summary>
        /// 大客户Id
        /// </summary>
        public long BigCustomerId { get; set; }

        /// <summary>
        /// 公司Id
        /// </summary>
        public int CompanyId { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        public long? UserId { get; set; }

        /// <summary>
        /// 交易总次数
        /// </summary>
        public int TradeTimes { get; set; }

        /// <summary>
        /// 交易总金额
        /// </summary>
        public decimal TradeAmount { get; set; }

        /// <summary>
        /// 今年交易总次数
        /// </summary>
        public int YearTradeTimes { get; set; }

        /// <summary>
        /// 今年交易总金额
        /// </summary>
        public decimal YearTradeAmount { get; set; }

        /// <summary>
        /// 最近一次交易时间
        /// </summary>
        public DateTime? LatestTradeTime { get; set; }

        /// <summary>
        /// 最近一次交易金额
        /// </summary>
        public decimal LatestTradeAmount { get; set; }

        /// <summary>
        /// 平均交易周期(天)
        /// </summary>
        public int AverageTradeCycle { get; set; }

        /// <summary>
        /// 平均交易金额(元)
        /// </summary>
        public decimal AverageTradeAmount { get; set; }

        /// <summary>
        /// 投诉总次数
        /// </summary>
        public int ComplaintTimes { get; set; }

        /// <summary>
        /// 已解决投诉总次数
        /// </summary>
        public int ClosedComplaintTimes { get; set; }

        /// <summary>
        /// 维修总次数
        /// </summary>
        public int RepairTimes { get; set; }

        /// <summary>
        /// 已完成维修的总次数
        /// </summary>
        public int CompletedRepairTimes { get; set; }

        /// <summary>
        /// 退货总次数
        /// </summary>
        public int ReturnGoodsTimes { get; set; }

        /// <summary>
        /// 退货总签收次数
        /// </summary>
        public int ReturnGoodsSignTimes { get; set; }

        /// <summary>
        /// 退货总金额
        /// </summary>
        public decimal ReturnGoodsAmount { get; set; }

        /// <summary>
        /// 今年投诉总次数
        /// </summary>
        public int YearComplaintTimes { get; set; }

        /// <summary>
        /// 今年已解决投诉总次数
        /// </summary>
        public int YearClosedComplaintTimes { get; set; }

        /// <summary>
        /// 今年维修总次数
        /// </summary>
        public int YearRepairTimes { get; set; }

        /// <summary>
        /// 今年已完成维修的总次数
        /// </summary>
        public int YearCompletedRepairTimes { get; set; }

        /// <summary>
        /// 今年退货总次数
        /// </summary>
        public int YearReturnGoodsTimes { get; set; }

        /// <summary>
        /// 今年退货总签收次数
        /// </summary>
        public int YearReturnGoodsSignTimes { get; set; }

        /// <summary>
        /// 今年退货总金额
        /// </summary>
        public decimal YearReturnGoodsAmount { get; set; }

        /// <summary>
        /// 今年退款不退货总金额
        /// </summary>
        public decimal YearRefundNoReturnGoodsAmount { get; set; }

        /// <summary>
        /// 退款不退货总金额
        /// </summary>
        public decimal RefundNoReturnGoodsAmount { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }


    }
}
